<template>
  <div class="pcDecorate">
    <el-card class="top-box-card">
      <iframe :src="iframeUrl" frameborder="0" />
    </el-card>
  </div>
</template>

<script>
import { getToken } from '@/utils/auth'
export default {
  data() {
    return {
      wikiUrl: process.env.VUE_APP_WIKI_PC_URL,
      iframeUrl: '',
      token: getToken()
    }
  },
  mounted() {
    this.iframeUrl = `${process.env.VUE_APP_WIKI_PC_URL}/#/home?pageType=canEdit&token=${this.token}`
  }
}
</script>

<style lang="scss" scoped="scoped">
.pcDecorate{
  iframe{
    height: calc(100vh - 110px);
    width: 100%;
  }
}
</style>
